package com.darly.dlcommon.common.net;

import androidx.annotation.IntDef;
import androidx.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * author:zhangyuhui
 * date:2020-05-2211:15
 * description: 网络状态
 */
public class NetworkType {

    public static final String NETWORK_WIFI = "WiFi";
    public static final String NETWORK_4G = "4G";
    public static final String NETWORK_2G = "2G";
    public static final String NETWORK_3G = "3G";
    public static final String NETWORK_UNKNOWN = "Unknown";
    public static final String NETWORK_NO = "No network";


    @StringDef(value = {
        NETWORK_WIFI,NETWORK_4G,NETWORK_2G,NETWORK_3G,NETWORK_UNKNOWN,NETWORK_NO
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface Type {}
}
